<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html >
<html lang="en">
<head>
<%@include file="../../common/operation_forbid.jsp" %>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../common/jsVersion.jsp" %>
    <meta charset="utf-8">
    <title>新增项目</title>
    <link href="${jypath}/resources/css/upload.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${jypath}/static/css/strip.css" />

<link rel="stylesheet" type="text/css" href="${jypath}/resources/js/jquery-ui-1.11.4/jquery-ui.css" />
<link rel="stylesheet" href="${jypath}/resources/css/jquery.multiselect.css" />
<script type="text/javascript" src="${jypath}/resources/js/jquery-ui-1.11.4/jquery-ui.min.js"></script>
<script src="${jypath}/resources/js/jquery.multiselect.min.js"></script>

</head>
<body>
<form id="project_info_form">
<div class="loadinfor">

<div class="maintt"> 项目信息  <a class="power open"></a> </div> <!-- 打开请加class  open -->
  <div class="editetablewrap"> 
            <table class=" editetable inputin tipsdowntable">
                <tr>
                    <td> <!--当现实错误时候td上加class errorshow-->
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"><font style="color: #e90000;">*</font>项目名称： </p>
                            <p class="rightinput">
                                <input name="projectName" class="input_txt" type="text" maxlength="50" jyValidate="required" value="${project.projectName}" />
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"><font style="color: #e90000;">*</font>所在省份： </p>
                            <p class="rightselect hasunit"> 
                                <select class=" input_txt" name="provinceId" id="provinceId" jyValidate="required" onchange="regionSelectChange(this,'cityId','')"> 
                                  <option value=""> 请选择 </option>
                                  <c:forEach var="rowEnum" items="${areas}">
										<option value="${rowEnum.id}"
										<c:if test="${project.provinceId==rowEnum.id}">selected="selected"</c:if>
										>${rowEnum.areaName}</option>
                                   </c:forEach>
                                </select>
                                <span class="unit select">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"><font style="color: #e90000;">*</font>所属城市： </p>
                            <p class="rightselect hasunit"> 
                                <select class=" input_txt" name="cityId" id="cityId" jyValidate="required" onchange="regionSelectChange(this,'areaId','')"> 
                                  <option value=""> 请选择 </option>
                                </select>
                                <span class="unit select">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"> 所属区域： </p>
                            <p class="rightselect hasunit"> 
                                <select class=" input_txt" name="areaId"  id="areaId"> 
                                  <option value=""> 请选择 </option>
                                </select>
                                <span class="unit select">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle"> 
                            <p class=" ttleft tt">公司总经理： </p>
                            <div class="col2select clearfix"> 
<!--                                 <p class="rightselect hasunit left">  -->
<!--                                     <select class=" input_txt" name="generalManagerDept" id="generalManagerDept" onchange="deptSelectChange(this,'generalManager','')" valid='true'>  -->
<!--                                       <option value=""> 请选择 </option> -->
<%--                                       <c:forEach var="rowEnum" items="${departments}"> --%>
<%-- 										<option value="${rowEnum.id}" --%>
<%-- 											<c:if test="${rowEnum.id==projectSetting.generalManagerDept}">selected="selected"</c:if> --%>
<%-- 											>${rowEnum.departmentName}</option> --%>
<%--                                       </c:forEach> --%>
<!--                                     </select> -->
<!--                                     <span class="unit select">  </span> -->
<!--                                 </p> -->
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="generalManager" id="generalManager" valid='false'> 
                                    <option value=""> 请选择 </option>
                                     <c:forEach var="rowEnum"   items="${generalManager}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.generalManager}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select">  </span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt">项目总： </p>
                            <div class="col2select clearfix"> 
<!--                                 <p class="rightselect hasunit left">  -->
<!--                                     <select class=" input_txt" name="projectLeaderDept" id="projectLeaderDept" onchange="deptSelectChange(this,'projectLeader','')" valid='true'>  -->
<!--                                       <option value=""> 请选择 </option> -->
<%--                                       <c:forEach var="rowEnum"   items="${departments}"> --%>
<%-- 										<option value="${rowEnum.id}" --%>
<%-- 											<c:if test="${rowEnum.id==projectSetting.projectLeaderDept}">selected="selected"</c:if> --%>
<%-- 											>${rowEnum.departmentName}</option> --%>
<%--                                       </c:forEach> --%>
<!--                                     </select> -->
<!--                                     <span class="unit select">  </span> -->
<!--                                 </p> -->
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="projectLeader" id="projectLeader" valid='false'> 
                                    <option value=""> 请选择 </option>
                                      <c:forEach var="rowEnum"   items="${projectLeader}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.projectLeader}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select">  </span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
				<tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt">经纪总： </p>
                            <div class="col2select clearfix"> 
<!--                                 <p class="rightselect hasunit left">  -->
<!--                                     <select class=" input_txt" name="saleLeaderDept" id="saleLeaderDept" onchange="deptSelectChange(this,'saleLeader','')" valid='true'>  -->
<!--                                       <option value=""> 请选择 </option> -->
<%--                                       <c:forEach var="rowEnum"   items="${departments}"> --%>
<%-- 										<option value="${rowEnum.id}"  --%>
<%-- 											<c:if test="${rowEnum.id==projectSetting.saleLeaderDept}">selected="selected"</c:if> --%>
<%-- 										>${rowEnum.departmentName}</option> --%>
<%--                                       </c:forEach> --%>
<!--                                     </select> -->
<!--                                     <span class="unit select">  </span> -->
<!--                                 </p> -->
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="saleLeader" id="saleLeader" valid='false'>
                                    <option value=""> 请选择 </option>
                                      <c:forEach var="rowEnum"   items="${saleLeader}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.saleLeader}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select">  </span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
             	<tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt">销售经理： </p>
                            <div class="col2select clearfix"> 
<!--                                 <p class="rightselect hasunit left">  -->
<!--                                     <select class=" input_txt" name="fieldLeaderDept" id="fieldLeaderDept" onchange="deptSelectChange(this,'fieldLeader','')" valid='true'>  -->
<!--                                      <option value=""> 请选择 </option> -->
<%--                                       <c:forEach var="rowEnum"   items="${departments}"> --%>
<%-- 										<option value="${rowEnum.id}" --%>
<%-- 											<c:if test="${rowEnum.id==projectSetting.fieldLeaderDept}">selected="selected"</c:if> --%>
<%-- 										>${rowEnum.departmentName}</option> --%>
<%--                                       </c:forEach> --%>
<!--                                     </select> -->
<!--                                     <span class="unit select">  </span> -->
<!--                                 </p> -->
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="fieldLeader" id="fieldLeader" valid='false'> 
                                       <option value=""> 请选择 </option>
                                      <c:forEach var="rowEnum"   items="${fieldLeader}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.fieldLeader}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select">  </span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
            	<tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt">销管经理： </p>
                            <div class="col2select clearfix"> 
<!--                                 <p class="rightselect hasunit left">  -->
<!--                                     <select class=" input_txt" name="maLeaderDept" id="maLeaderDept" onchange="deptSelectChange(this,'maLeader','')" valid='true'>  -->
<!--                                     	<option value=""> 请选择 </option> -->
<%--                                  		<c:forEach var="rowEnum"   items="${departments}"> --%>
<%-- 											<option value="${rowEnum.id}" --%>
<%-- 												<c:if test="${rowEnum.id==projectSetting.maLeaderDept}">selected="selected"</c:if> --%>
<!-- 											> -->
<%-- 												${rowEnum.departmentName} --%>
<!-- 											</option> -->
<%--                                       	</c:forEach> --%>
<!--                               		</select> -->
<!--                                     <span class="unit select"></span> -->
<!--                                 </p> -->
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="maLeader" id="maLeader" valid='false'> 
                                    <option value=""> 请选择 </option>
                                      <c:forEach var="rowEnum"   items="${maLeader}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.maLeader}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select">  </span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt">财务经理： </p>
                            <div class="col2select clearfix"> 
<!--                                 <p class="rightselect hasunit left">  -->
<!--                                     <select class=" input_txt" name="financeLeaderDept" id="financeLeaderDept" onchange="deptSelectChange(this,'financeLeader','')" valid='true'>  -->
<!--                                                                  <option value=""> 请选择 </option> -->
<%--                                       <c:forEach var="rowEnum"   items="${departments}"> --%>
<%-- 										<option value="${rowEnum.id}" --%>
<%-- 										<c:if test="${rowEnum.id==projectSetting.financeLeaderDept}">selected="selected"</c:if> --%>
<%-- 										>${rowEnum.departmentName}</option> --%>
<%--                                       </c:forEach> --%>
<!--                                     </select> -->
<!--                                     <span class="unit select">  </span> -->
<!--                                 </p> -->
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="financeLeader" id="financeLeader" valid='false'> 
                                    	<option value=""> 请选择 </option>
                                       <c:forEach var="rowEnum"   items="${financeLeader}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.financeLeader}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select">  </span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt">区域领导： </p>
                            <div class="col2select clearfix"> 
<!--                                 <p class="rightselect hasunit left">  -->
<!--                                     <select class=" input_txt" name="areaLeaderDept" id="areaLeaderDept" onchange="deptSelectChange(this,'areaLeader','')" valid='true'>  -->
<!--                                   		<option value=""> 请选择 </option> -->
<%--                                       	<c:forEach var="rowEnum"   items="${departments}"> --%>
<%-- 											<option value="${rowEnum.id}" --%>
<%-- 												<c:if test="${rowEnum.id==projectSetting.areaLeaderDept}">selected="selected"</c:if> --%>
<%-- 											>${rowEnum.departmentName}</option> --%>
<%--                                       </c:forEach> --%>
<!--                                     </select> -->
<!--                                     <span class="unit select"></span> -->
<!--                                 </p> -->
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="areaLeader" id="areaLeader" valid='false'> 
                                     	<option value=""> 请选择 </option>
                                       <c:forEach var="rowEnum"   items="${areaLeader}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.areaLeader}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select"></span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt">区域经理： </p>
                            <div class="col2select clearfix"> 
                                <p class="rightselect hasunit left"> 
                                    <select class=" input_txt" name="areaManager" id="areaManager" valid='false'> 
                                     	<option value=""> 请选择 </option>
                                       <c:forEach var="rowEnum"   items="${areaManager}">
										<option value="${rowEnum.id}"
											<c:if test="${rowEnum.id==projectSetting.areaManager}">selected="selected"</c:if>
										>${rowEnum.userName}</option>
                                      </c:forEach>
                                    </select>
                                    <span class="unit select"></span>
                                </p>
                            </div>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                 <tr>
                    <td> 
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 排序编号： </p>
                            <p class="rightinput"> 
                                <input name="sort" id="sort" class="input_txt" type="text" placeholder=" 请输入排序编号" jyValidate="intnumLen" length="10" maxlength="10" value="${project.sort}" valid='number' />
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                    
                </tr>
                 <tr>
                    <td> 
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 分期数： </p>
                            <p class="rightinput"> 
                                <input name="stagesNum" class="input_txt" type="text" jyValidate="intnumLen" length="10" placeholder=" 请输入分期数" value="${project.stagesNum}" valid='number'/>
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                    
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"> 产品类型： </p>
                            <p class="rightselect hasunit" > 
                                <select id="projectTypeSelect" class=" input_txt" onchange="projectTypeChange()" multiple="multiple" > 
                                   <option value=""> 请选择 </option>
                                   <c:forEach var="rowEnum"   items="${projectTypes}">
										<option value="${rowEnum.no}">${rowEnum.des}</option>
                                   </c:forEach>
                                    </select>
                                    
                                <!-- <span class="unit select">  </span> -->
                            </p>
                            <input type="hidden" value="${project.projectType}" name="projectType" id="projectType">
                        </div>
                    </td>
                    
                </tr>
                <tr id="otherProjectType">
                    <td> 
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> &nbsp; </p>
                            <p class="rightinput"> 
                                <input name="otherProjectType" value="${project.remark}"  class="input_txt" type="text" placeholder="请输入其它产品类型"/>
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                    
                </tr>
                
              <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"> 项目类型： </p>
                            <p class="rightselect hasunit" > 
                                <select class=" input_txt" name="itemType"> 
                                   <option value=""> 请选择 </option>
                                   <c:forEach var="rowEnum"   items="${itemTypes}">
										<option value="${rowEnum.no}"
										<c:if test="${rowEnum.no==project.itemType}">selected="selected"</c:if>
										>${rowEnum.des}</option>
                                   </c:forEach>
                                    </select>
                                    
                                <span class="unit select">  </span>
                            </p>
                        </div>
                    </td>
                    
                </tr>
                
              <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 容积率： </p>
                            <p class="rightinput hasunit"> 
                                <input name="plotRatio" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${project.plotRatio}" valid='decimal'/>
                                <span class="unit"></span>
                            </p>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>
                    </td>
                    
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 绿化率： </p>
                            <p class="rightinput hasunit"> 
                                <input name="greeningRate" class="input_txt" type="text" value="${project.greeningRate}" valid='decimal'/>
                                <span class="unit"> % </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 占地面积： </p>
                            <p class="rightinput hasunit"> 
                                <input name="floorSpace" class="input_txt" type="text" jyValidate="float" length="10" precision="2" placeholder="如76.50" value="${project.floorSpace}"/>
                                <span class="unit" style=" width:6em;"> 万平方米 </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 总户数： </p>
                            <p class="rightinput hasunit"> 
                                <input  id="householdsTotal" name="householdsTotal" class="input_txt" type="text" jyValidate="intnumLen" length="10" placeholder="请输入" value="${project.householdsTotal}" valid='number' />
                                <span class="unit"> 户 </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 车位数： </p>
                            <p class="rightinput hasunit"> 
                                <input  id="carportTotal" name="carportTotal" class="input_txt" type="text" jyValidate="intnumLen" length="10" placeholder="请输入" value="${project.carportTotal}" valid='number' />
                                <span class="unit"> 个 </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 车位配比率： </p>
                            <p class="rightinput"> 
                                <input id="carportMatching" name="carportMatching" class="input_txt" type="text" jyValidate="float" length="10" precision="2" placeholder="请输入" value="${project.carportMatching}"/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 销售热线： </p>
                            <p class="rightinput"> 
                                <input name="salesHotline" class="input_txt" jyValidate="isTel" type="text" placeholder="请输入" value="${project.salesHotline}" />
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap"> 
                            <p class="tt ttleft"> 售楼地址： </p>
                            <p class=" rightinput hastexteara"> 
                                <textarea name="salesAddress" class=" input_txt"> ${project.salesAddress}</textarea>
                                <span class="placeholder"> </span>
                            </p>

                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 物业公司： </p>
                            <p class="rightinput"> 
                                <input name="propertyCompany" class="input_txt" type="text" placeholder="请输入" value="${project.propertyCompany}"/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 项目公司名称： </p>
                            <p class="rightinput"> 
                                <input name="developerName" class="input_txt" type="text" placeholder="请输入" value="${project.developerName}"/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 项目公司地址： </p>
                            <p class=" rightinput hastexteara"> 
                                <textarea name="developerAddress" class=" input_txt"> ${project.developerAddress} </textarea>
                                <span class="placeholder"> </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 楼盘地址： </p>
                            <p class=" rightinput hastexteara"> 
                                <textarea name="premisesAddress" class=" input_txt"> ${project.premisesAddress} </textarea>
                                <span class="placeholder"></span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 产权年限： </p>
                            <p class="rightinput"> 
                                <input name="propertyYear" class="input_txt" type="text" jyValidate="intnumLen" length="10" placeholder="请输入" valid='number' value="${project.propertyYear}"/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 建造进度： </p>
                            <p class="rightinput"> 
                                <input name="buildingSchedule" class="input_txt" type="text" placeholder="请输入" value="${project.buildingSchedule}"/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 开工时间： </p>
                            <p class="rightinput hasunit"> 
                                <input name="startTime" class="input_txt" type="text" onclick="WdatePicker()" value="<fmt:formatDate value="${project.startTime}" pattern="yyyy-MM-dd"/>" />
                                <span class="Wdate unit">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确开工时间 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"> 交付情况： </p>
                            <p class="rightselect hasunit"> 
                                <select class=" input_txt" name="deliveryStatus"> 
                                  <option value=""> 请选择 </option>
                                  <c:forEach var="rowEnum"   items="${deliveryStatusEnums}">
										<option value="${rowEnum.no}"
										<c:if test="${rowEnum.no==project.deliveryStatus}">selected="selected"</c:if>
										>${rowEnum.des}</option>
                                   </c:forEach>
                                </select>
                                <span class="unit select">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 交付时期： </p>
                            <p class="rightinput hasunit"> 
                            
                                <input name="deliveryDate" class="input_txt" type="text" onclick="WdatePicker()" value="<fmt:formatDate value="${project.deliveryDate}" pattern="yyyy-MM-dd"/>" />
                                <span class="Wdate unit">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确交付日期 </p>
                        </div>
                    </td>
                    
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"> 装修标准： </p>
                            <p class="rightselect hasunit"> 
                                <select id="renovationType" name="renovationType" class=" input_txt" onchange="renovationTypeChange()" > 
                                   <c:forEach var="rowEnum"   items="${renovationTypeEnums}">
										<option value="${rowEnum.no}" 
										<c:if test="${rowEnum.no==project.renovationType}">selected="selected"</c:if>>${rowEnum.des}</option>
                                   </c:forEach>
								</select>
                                <span class="unit select">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    
                </tr>
                <tr id="renovationDesc" <c:if test="${project.renovationType!=2}">style="display: none"</c:if>>
                    <td> 
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> &nbsp; </p>
                            <p class="rightinput"> 
                                <input maxlength="50" id="renovationDesc" name="renovationDesc" value="${project.renovationDesc}"  class="input_txt" type="text" placeholder="请输入其它装修标准"/>
                            </p>
                            <p class=" tip red"> *请输入正确 </p>
                        </div>
                    </td>
                    
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"> 销售情况： </p>
                            <p class="rightselect hasunit"> 
                                <select class=" input_txt" name="salesStatus"> 
                                  <option value=""> 请选择 </option>
                                  <c:forEach var="rowEnum"   items="${salesStatusEnums}">
										<option value="${rowEnum.no}"
											<c:if test="${rowEnum.no==project.salesStatus}">selected="selected"</c:if>
										>${rowEnum.des}</option>
                                   </c:forEach>
                                </select>
                                <span class="unit select">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    
                </tr>
				<!-- 
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 预售证编号： </p>
                            <p class="rightinput"> 
                                <input name="salesPermissionNo" class="input_txt" type="text" placeholder="请输入" value="${project.salesPermissionNo}" />
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 预售证领取日期： </p>
                            <p class="rightinput hasunit"> 
                                <input name="salesPermissionDate" class="input_txt" type="text" onclick="WdatePicker()" <fmt:formatDate value="${project.salesPermissionDate}" pattern="yyyy-MM-dd"/>/>
                                <span class="Wdate unit">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>
                    </td>
                </tr>
                 -->
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 楼盘概况： </p>
                            <p class=" rightinput rightinput2 hastexteara"> 
                                <textarea name="premisesCase" class=" input_txt" > ${project.premisesCase}</textarea>
                                <span class="placeholder">  </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
               <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 项目配套： </p>
                            <p class=" rightinput rightinput2 hastexteara"> 
                                <textarea name="projectRequirement" class=" input_txt"> ${project.projectRequirement} </textarea>
                                <span class="placeholder">  </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                
                                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 交通情况： </p>
                            <p class=" rightinput rightinput2 hastexteara"> 
                                <textarea name="trafficCase" class=" input_txt"> ${project.trafficCase} </textarea>
                                <span class="placeholder">  </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 项目LOGO： </p>
                            <div class="uploadimg"> 
                              <p class="uploadimgtt">已上传 0 张图片</p>
                              <div class="inner mt10" id="project_logo_img_div"> 
                                 <a class="add">  <input onchange="ajaxfile('project_logo_img_div',this)" type="file"/>  </a>
                                  <c:forEach var="img"   items="${imgList}">
                                      <c:choose>
                                      <c:when test="${img.projectImgType eq 1}">
								        <a class="imgblock" onclick='showImg(this)'> <img height="108px" width="108px" src="${img.normalUrl}" /><em class=" close" onclick="removeImg(this)"> </em></a>
								      </c:when>
								      </c:choose>
                                  </c:forEach>
                               </div>
                               <p class=" gray"> 建议尺寸：640 x 640 像素；  </p>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 总平图： </p>
                            <div class="uploadimg"> 
                              <p class="uploadimgtt">已上传 0 张图片</p>
                              <div class="inner mt10" id="project_plane_img_div"> 
                                 <a class="add">  <input onchange="ajaxfile('project_plane_img_div',this)" type="file" />  </a>
                                 
                                   <c:forEach var="img"   items="${imgList}">
                                      <c:choose>
                                      <c:when test="${img.projectImgType eq 2}">
                                       <a class="imgblock" onclick='showImg(this)'> <img height="108px" width="108px" src="${img.normalUrl}" /><em class=" close" onclick="removeImg(this)"> </em></a>
								      </c:when>
								      </c:choose>  
                                  </c:forEach>
                                 
                               </div>
                               <p class=" gray"> 建议尺寸：640 x 640 像素；  </p>
                            </div>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 周边配套图： </p>
                            <div class="uploadimg"> 
                              <p class="uploadimgtt">已上传 0 张图片</p>
                              <div class="inner mt10" id="project_periphery_img_div"> 
                                 <a class="add">  <input onchange="ajaxfile('project_periphery_img_div',this)"  type="file" />  </a>
                                 
                                 
                                   <c:forEach var="img"   items="${imgList}">
                                      <c:choose>
                                      <c:when test="${img.projectImgType eq 3}">
                                       <a class="imgblock" onclick='showImg(this)'> <img height="108px" width="108px" src="${img.normalUrl}" /><em class=" close" onclick="removeImg(this)"> </em></a>
								      </c:when>
								      </c:choose>  
                                  </c:forEach>
                                 
                               </div>
                               <p class=" gray"> 建议尺寸：640 x 640 像素；  </p>
                            </div>
                        </div>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 效果图： </p>
                            <div class="uploadimg"> 
                              <p class="uploadimgtt">已上传 0 张图片</p>
                              <div class="inner mt10" id="project_effect_img_div"> 
                                 <a class="add">  <input onchange="ajaxfile('project_effect_img_div',this)"  type="file" />  </a>
                                 
                                 <c:forEach var="img"   items="${imgList}">
                                      <c:choose>
                                      <c:when test="${img.projectImgType eq 7}">
                                       <a class="imgblock" onclick='showImg(this)'> <img height="108px" width="108px" src="${img.normalUrl}" /><em class=" close" onclick="removeImg(this)"> </em></a>
								      </c:when>
								      </c:choose>  
                                  </c:forEach>
                                 
                               </div>
                               <p class=" gray"> 建议尺寸：640 x 640 像素；  </p>
                            </div>
                        </div>
                    </td>
                </tr>
                
               <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 交通图： </p>
                            <div class="uploadimg"> 
                              <p class="uploadimgtt">已上传 0 张图片</p>
                              <div class="inner mt10" id="project_traffic_img_div"> 
                                 <a class="add">  <input onchange="ajaxfile('project_traffic_img_div',this)"  type="file" />  </a>
                               
                               	<c:forEach var="img"   items="${imgList}">
                                      <c:choose>
                                      <c:when test="${img.projectImgType eq 4}">
                                       <a class="imgblock" onclick='showImg(this)'> <img  height="108px" width="108px" src="${img.normalUrl}" /><em class=" close" onclick="removeImg(this)"> </em></a>
								      </c:when>
								      </c:choose>  
                                  </c:forEach>
                               </div>
                               <p class=" gray"> 建议尺寸：640 x 640 像素；  </p>
                            </div>
                        </div>
                    </td>
                </tr>
                
               <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt">实景图： </p>
                            <div class="uploadimg"> 
                              <p class="uploadimgtt">已上传 0 张图片</p>
                              <div class="inner mt10" id="project_real_img_div"> 
                                 <a class="add">  <input onchange="ajaxfile('project_real_img_div',this)"  type="file" />  </a>
                              
                              	<c:forEach var="img"   items="${imgList}">
                                      <c:choose>
                                      <c:when test="${img.projectImgType eq 5}">
                                       <a class="imgblock" onclick='showImg(this)'> <img height="108px" width="108px" src="${img.normalUrl}" /><em class=" close" onclick="removeImg(this)"> </em></a>
								      </c:when>
								      </c:choose>  
                                  </c:forEach>
                              
                               </div>
                               <p class=" gray"> 建议尺寸：640 x 640 像素；  </p>
                            </div>
                        </div>
                    </td>
                </tr>
                
             <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt">样板图： </p>
                            <div class="uploadimg"> 
                              <p class="uploadimgtt">已上传 0 张图片</p>
                              <div class="inner mt10" id="project_model_img_div"> 
                                 <a class="add">  <input onchange="ajaxfile('project_model_img_div',this)"  type="file" />  </a>
                                 
                                 <c:forEach var="img"   items="${imgList}">
                                      <c:choose>
                                      <c:when test="${img.projectImgType eq 6}">
                                       <a class="imgblock" onclick='showImg(this)'> <img height="108px" width="108px" src="${img.normalUrl}" /><em class=" close" onclick="removeImg(this)"> </em></a>
								      </c:when>
								      </c:choose>  
                                  </c:forEach>
                                 
                               </div>
                               <p class=" gray"> 建议尺寸：640 x 640 像素；  </p>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>

            
  </div>

  <div class="maintt"> 房产信息 <a class="power open"></a> </div>

  <div class="editetablewrap"> 

            <table class=" editetable tipsdowntable inputin">
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 所属社区： </p>
                            <p class="rightinput"> 
                                <input name="community" class="input_txt" type="text" placeholder="请输入" value="${projectInfo.community}" />
                            </p>
                             <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                    <td width="4%"> </td>
                    <td width="48%"> 
                       <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 所属街道： </p>
                            <p class="rightinput"> 
                                <input name="street" class="input_txt" type="text" placeholder="请输入" value="${projectInfo.street}"/>
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 管理区地址： </p>
                            <p class="rightinput"> 
                                <input name="precinctAddress" class="input_txt" type="text" placeholder="请输入" value="${projectInfo.precinctAddress}"/>
                            </p>
                             <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                    <td width="4%"> </td>
                    <td width="48%"> 
                       <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 邮政编码： </p>
                            <p class="rightinput"> 
                                <input name="zipCode" class="input_txt" type="text" placeholder="请输入" value="${projectInfo.zipCode}"/>
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="innerselectwrap innermiddle "> 
                            <p class=" ttleft tt"> 物业类型： </p>
                            <p class="rightselect hasunit"> 
                                <select class=" input_txt" name="tenementType"> 
                                  <option value=""> 请选择 </option>
                                  <c:forEach var="rowEnum"   items="${tenementTypeEnums}">
										<option value="${rowEnum.no}"
											<c:if test="${rowEnum.no==projectInfo.tenementType}"></c:if>
										>${rowEnum.des}</option>
                                   </c:forEach>
                                </select>
                                <span class="unit select">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确城市 </p>
                        </div>
                    </td>
                    <td> </td>
                    <td> 
                       <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 交付日期： </p>
                            <p class="rightinput hasunit"> 
                           <%--  --%>
                                <input name="deliveryDateInfo" class="input_txt" type="text" onclick="WdatePicker()" value="<fmt:formatDate value="${projectInfo.deliveryDate}" pattern="yyyy-MM-dd"/>"/>
                                <span class="Wdate unit">  </span>
                            </p>
                            <p class=" tip red"> *请输入正确交付日期 </p>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 合同面积： </p>
                            <p class="rightinput hasunit"> 
                                <input name="contactArea" class="input_txt" type="text" jyValidate="float" length="12" precision="6" value="${projectInfo.contactArea}" valid='decimal'/>
                                <span class="unit"> m<sup>2</sup> </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                     <td> </td>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 计费面积： </p>
                            <p class="rightinput hasunit"> 
                                <input name="billingArea" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.billingArea}" valid='decimal'/>
                                <span class="unit"> m<sup>2</sup> </span>
                            </p>
                            <p class=" tip red"> *请输入正确计费面积 </p>
                        </div>  
                    </td>
                </tr>
                <tr>
                    <td>

                       <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 总建筑面积： </p>
                            <div class="rightinput hasunit"> 
                                <input name="overallFloorage" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.overallFloorage}" valid='decimal'/>
                                <span class="unit"> m<sup>2</sup> </span>
                                <div class="subinput"> 
                                   <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 地上面积： </div>
                                        <div class="rightinput hasunit"> 
                                            <input name="groundArea" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.groundArea}" valid='decimal'/>
                                            <span class="unit"> m<sup>2</sup> </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确地上面积 </div>
                                    </div>
                                     <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 地下面积： </div>
                                        <div class="rightinput hasunit"> 
                                            <input name="undergroundArea" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.undergroundArea}" valid='decimal'/>
                                            <span class="unit"> m<sup>2</sup> </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确地下面积 </div>
                                    </div> 
                                    <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 可出租面积： </div>
                                        <div class="rightinput hasunit"> 
                                            <input name="rentableArea" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.rentableArea}" valid='decimal'/>
                                            <span class="unit"> m<sup>2</sup> </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确可出租面积 </div>
                                    </div> 
                                    <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 自用面积： </div>
                                        <div class="rightinput hasunit"> 
                                            <input name="ownArea" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.ownArea}" valid='decimal'/>
                                            <span class="unit"> m<sup>2</sup> </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确自用面积 </div>
                                    </div> 
                                </div>
                            </div>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div> 
                        
                        <div class="innerinputwrap innermiddle mt10 "> 
                            <p class=" ttleft tt"> 地下停车场： </p>
                            <div class="rightinput hasunit"> 
                                <input name="undergroundParkingArea" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.undergroundParkingArea}" valid='decimal'/>
                                <span class="unit"> m<sup>2</sup> </span>
                                <div class="subinput"> 
                                   <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 数量： </div>
                                        <div class="rightinput hasunit"> 
                                            <input name="undergroundParkingNum" class="input_txt" type="text" jyValidate="intnumLen" length="10" value="${projectInfo.undergroundParkingNum}" valid='number'/>
                                            <span class="unit"> 个 </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确容积率 </div>
                                    </div>
                                </div>
                            </div>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div> 
                        
                        <div class="innerinputwrap innermiddle mt10 "> 
                            <p class=" ttleft tt"> 绿化面积： </p>
                            <div class="rightinput hasunit"> 
                                <input name="greenSpace" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.greenSpace}" valid='decimal'/>
                                <span class="unit"> m<sup>2</sup> </span>
                            </div>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>  
                         
                    </td>
                     <td> </td>
                    <td>
                        <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 占地面积： </p>
                            <div class="rightinput hasunit"> 
                                <input name="floorSpace" class="input_txt" type="text" jyValidate="float" length="10" precision="2" value="${projectInfo.floorSpace}" valid='decimal'/>
                                <span class="unit"> m<sup>2</sup> </span>
                            </div>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>  

                        <div class="innerinputwrap innermiddle mt10 "> 
                            <p class=" ttleft tt"> 住宅建筑面积： </p>
                            <div class="rightinput hasunit"> 
                                <input class="input_txt" type="text" name="housingArea" jyValidate="float" length="10" precision="2" value="${projectInfo.housingArea}" valid='decimal'/>
                                <span class="unit"> m<sup>2</sup> </span>
                            </div>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>  

                        <div class="innerinputwrap innermiddle mt10 "> 
                            <p class=" ttleft tt"> 四至边界： </p>
                            <div class="rightinput hasunit"> 
                                <input class="input_txt" type="text" name="fourBorder" value="${projectInfo.fourBorder}"/>
                                
                            </div>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>  

                        <div class="innerinputwrap innermiddle mt10 "> 
                            <p class=" ttleft tt"> 停车位： </p>
                            <div class="rightinput hasunit"> 
                                <input class="input_txt" type="text" name="parking" jyValidate="intnumLen" length="10" value="${projectInfo.parking}" valid='number' />
                                <span class="unit"> 个 </span>
                                <div class="subinput"> 
                                   <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 地上机动车位： </div>
                                        <div class="rightinput hasunit"> 
                                            <input class="input_txt" type="text" name="groundMotor" jyValidate="intnumLen" length="10" value="${projectInfo.groundMotor}" valid='number'/>
                                            <span class="unit"> 个 </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确容积率 </div>
                                    </div>
                                    <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 地下机动车位： </div>
                                        <div class="rightinput hasunit"> 
                                            <input class="input_txt" type="text" name="undergroundMotor" jyValidate="intnumLen" length="10" value="${projectInfo.undergroundMotor}" valid='number' />
                                            <span class="unit"> 个 </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确容积率 </div>
                                    </div>
                                    <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 地上非机动车位： </div>
                                        <div class="rightinput hasunit"> 
                                            <input class="input_txt" type="text" name="groundNonMotor" jyValidate="intnumLen" length="10" value="${projectInfo.groundNonMotor}" valid='number' />
                                            <span class="unit"> 个 </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确容积率 </div>
                                    </div>
                                     <div class="innerinputwrap innermiddle "> 
                                        <div class=" ttleft tt"> 地下非机动车位： </div>
                                        <div class="rightinput hasunit"> 
                                            <input class="input_txt" type="text" name="undergroundNonMotor" jyValidate="intnumLen" length="10" value="${projectInfo.undergroundNonMotor}" valid='number' />
                                            <span class="unit"> 个 </span>
                                
                                        </div>
                                        <div class=" tip red"> *请输入正确容积率 </div>
                                    </div>
                                </div>
                            </div>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div> 


                    </td>
                </tr>
                <tr>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 总户数： </p>
                            <p class="rightinput"> 
                                <input name="totalHouse" class="input_txt" type="text" jyValidate="intnumLen" length="10" precision="2" value="${projectInfo.totalHouse}" valid='number'/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                     <td> </td>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 常住人口数： </p>
                            <p class="rightinput"> 
                                <input name="permanentPopulation" class="input_txt" type="text" jyValidate="intnumLen" length="10" value="${projectInfo.permanentPopulation}" valid='number'/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                </tr>
                <tr>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 总人口数： </p>
                            <p class="rightinput"> 
                                <input name="totalPopulation" class="input_txt" type="text" jyValidate="intnumLen" length="10" value="${projectInfo.totalPopulation}" valid='number'/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                     <td> </td>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 暂住人口数： </p>
                            <p class="rightinput"> 
                                <input name="temporaryPopulation" class="input_txt" type="text" jyValidate="intnumLen" length="10" value="${projectInfo.temporaryPopulation}" valid='number'/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                </tr>
                 <tr>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt"> 管理区负责人： </p>
                            <p class="rightinput"> 
                                <input class="input_txt" type="text" name="principal" value="${projectInfo.principal}"/>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                     <td> </td>
                    <td>
                       
                    </td>
                </tr>
            </table>

           
  </div>

  <div class="maintt"> 项目设置 <a class="power open"> </a> </div>
  <div class="editetablewrap" style="display:none" > 

            <table class=" editetable tipsdowntable inputin" style="margin-bottom:70px;">
                <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft tt"> 预定默认定金： </p>
                            <p class="rightinput hasunit"> 
                                <input class="input_txt" type="text" placeholder="请输入" name="defaultEarnest" jyValidate="float" length="15" precision="2" value="${projectSetting.defaultEarnest}" valid='decimal' />
                                <span class="unit"> 元 </span>
                            </p>
                             <p class=" tip red"> *请输入正确名称 </p>
                        </div>
                    </td>
                    <td width="4%"> </td>
                    <td width="48%"> 
                       <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft ttleft2 tt"> 签约能否修改备案： </p>
                            <p class="rightinput"> 
                                <em class=" icon_radio icon_radio_checked" name="signupRecordChangeCheck" id="signupRecordChangeCheck_0" checkValue="0" onclick="clickSelect(this,'signupRecordChange')"> </em> <label> 不能 </label>
                                <em class=" icon_radio ml15 " name="signupRecordChangeCheck" checkValue="1" id="signupRecordChangeCheck_1"  onclick="clickSelect(this,'signupRecordChange')"> </em> <label> 能 </label>
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                            <input type="hidden" name="signupRecordChange" id="signupRecordChange" value="0"/>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft ttleft2 tt"> 预定能否修改折扣： </p>
                            <p class="rightinput"> 
                                <em class=" icon_radio icon_radio_checked" name="reserveDiscountChangeCheck" id="reserveDiscountChangeCheck_0" checkValue="0"  onclick="clickSelect(this,'reserveDiscountChange')"> </em> <label> 不能 </label>
                                <em class=" icon_radio ml15" name="reserveDiscountChangeCheck" checkValue="1" id="reserveDiscountChangeCheck_1"  onclick="clickSelect(this,'reserveDiscountChange')"> </em> <label> 能 </label>
                            </p>
                            <input type="hidden" name="reserveDiscountChange" id="reserveDiscountChange" value="0"/>
                        </div>
                    </td>
                    <td width="4%"> </td>
                    <td width="48%"> 
                       <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft ttleft2 tt"> 无房认筹是否精选到组团： </p>
                            <p class="rightinput"> 
                                <em class=" icon_radio icon_radio_checked" name="needToPremisesCheck" id="needToPremisesCheck_0" checkValue="0" onclick="clickSelect(this,'needToPremises')"> </em> <label> 不能 </label>
                                <em class=" icon_radio ml15" name="needToPremisesCheck" checkValue="1" id="needToPremisesCheck_1" onclick="clickSelect(this,'needToPremises')"> </em> <label> 能 </label>
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                            <input type="hidden" name="needToPremises" id="needToPremises" value="0"/>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft tt">开盘时间： </p>
                            <p class="rightinput hasunit"> 
                           
                                <input type="text" onclick="WdatePicker()" name="openTime" class="input_txt" value="<fmt:formatDate value="${projectSetting.openTime}" pattern="yyyy-MM-dd"/>">
                                <span class="Wdate unit"> </span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                     <td> </td>
                    
                </tr>

                 <tr>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft ttleft2 tt"> 开盘前案场客户有效期： </p>
                            <p class="rightinput hasunit"> 
                                <input type="text" class="input_txt" name="validBeforeField" jyValidate="intnumLen" length="10" value="${projectSetting.validBeforeField}" valid='number'>
                                <span class="unit">天</span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                     <td> </td>
                     <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft ttleft2 tt"> 开盘后案场客户有效期： </p>
                            <p class="rightinput hasunit"> 
                                <input type="text" class="input_txt" name="validAfterField" jyValidate="intnumLen" length="10" value="${projectSetting.validAfterField}" valid='number'>
                                <span class="unit"> 天 </span>
                            </p>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>  
                    </td>
                </tr>

                <tr>
                    <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft ttleft2 tt"> 开盘前渠道客户有效期： </p>
                            <p class="rightinput hasunit"> 
                                <input type="text" class="input_txt" name="validBeforeChannel" jyValidate="intnumLen" length="10" value="${projectSetting.validBeforeChannel}" valid='number'>
                                <span class="unit">天</span>
                            </p>
                            <p class=" tip red"> *请输入一个非负数 </p>
                        </div>  
                    </td>
                     <td> </td>
                     <td>
                      <div class="innerinputwrap innermiddle "> 
                            <p class=" ttleft ttleft2 tt"> 开盘后渠道客户有效期： </p>
                            <p class="rightinput hasunit"> 
                                <input type="text" class="input_txt" name="validAfterChannel" jyValidate="intnumLen" length="10" value="${projectSetting.validAfterChannel}" valid='number'>
                                <span class="unit"> 天 </span>
                            </p>
                            <p class=" tip red"> *请输入正确容积率 </p>
                        </div>  
                    </td>
                </tr>
				<tr>
					<td>
                      <div class="innerinputwrap innermiddle"> 
                            <p class=" ttleft ttleft2 tt"> 是否启用打印有效协议： </p>
                            <p class="rightinput"> 
                                <em class=" icon_radio icon_radio_checked" name="validPrintCheck" id="validPrintCheck_0" checkValue="0" onclick="clickSelect(this,'validPrint')"> </em> <label> 能 </label>
                                <em class=" icon_radio ml15"  name="validPrintCheck" checkValue="1" id="validPrintCheck_1" onclick="clickSelect(this,'validPrint')"> </em> <label> 不能 </label>
                            </p>
                            <p class=" tip red"> *请输入正确名称 </p>
                            <input type="hidden" name="validPrint" id="validPrint" value="0"/>
                        </div>
                    </td>
				</tr>
      		</table>
  		</div>
  		<style>
  		.sav_add{background-color: #23b7e5;color:#fff;padding: 0 35px;height:36px;line-height:36px; display: inline-block;border-radius:2px;}
  		.sav_add:hover{text-decoration: none; color:#fff;}
  		</style>

		<div class="downbtnwrap" style="position:fixed;bottom:0;width:100%;padding:10px 0;">
			<a class="sav_add" onclick="savaData()"> 保存 </a>
			<a class=" btn btn_white ml50" onclick="backProject()"> 返回 </a>
		</div>
	</div>
	<input type="hidden" name="logoUrl" id="logoUrl" value=""/>
	<input type="hidden" name="planeUrl" id="planeUrl" value=""/>
	<input type="hidden" name="peripheryUrl" id="peripheryUrl" value=""/>
	<input type="hidden" name="effectUrl" id="effectUrl" value=""/>
	<input type="hidden" name="trafficUrl" id="trafficUrl" value=""/>
	<input type="hidden" name="realUrl" id="realUrl" value=""/>
	<input type="hidden" name="modelUrl" id="modelUrl" value=""/>
	<input type="hidden" name="id" value="${project.id}" id="idKey"></input>
	<input type="hidden" name="projectInfoId" value="${projectInfo.id}"></input>
	<input type="hidden" name="settingId" value="${projectSetting.id}"></input>
</form>


<script>
    function backProject(){
    	var url="${jypath}/estate/project/index";
    	window.location.href=url;
    }
	function initradioBut(objHtml,value,emId){
		var signupRecordChange = value;
		var obj = $(objHtml);
		for(var i =0;i<obj.length;i++){
			obj.eq(i).attr("class","icon_radio ml15");
		}
		$(emId+signupRecordChange).attr("class","icon_radio icon_radio_checked");
	}

    $(function () {
    	$("#projectTypeSelect").multiselect({
            noneSelectedText: "请选择",
            checkAllText: "全选",
            uncheckAllText: '全不选',
            selectedList:15
        });
    	initProjectType();
    	var provinceId  = "${project.provinceId}";
    	if(provinceId!=null&&provinceId!=""){
    		//编辑时 选中所属城市
    		regionSelectChange($("#provinceId"),'cityId',"${project.cityId}");
    		//编辑时 选中所属区域
    		regionSelectChange($("#cityId"),'areaId',"${project.areaId}");
    		//编辑，初始化预定默认定金
    		initradioBut("em[name='signupRecordChangeCheck']","${projectSetting.signupRecordChange}","#signupRecordChangeCheck_");
    		//编辑，预定默认定金
    		initradioBut("em[name='reserveDiscountChangeCheck']","${projectSetting.reserveDiscountChange}","#reserveDiscountChangeCheck_");
    		//编辑，无房认筹是否精选到组团
    		initradioBut("em[name='needToPremisesCheck']","${projectSetting.needToPremises}","#needToPremisesCheck_");
    		//编辑,是否启用打印有效协议
    		initradioBut("em[name='validPrintCheck']","${projectSetting.validPrint}","#validPrintCheck_");
    		//项目总经理
    		//deptSelectChange($("#generalManagerDept"),'generalManager',"${projectSetting.generalManager}");
    		//项目负责人
    		//deptSelectChange($("#projectLeaderDept"),'projectLeader',"${projectSetting.projectLeader}");
    		//营销负责人
    		//deptSelectChange($("#saleLeaderDept"),'saleLeader',"${projectSetting.saleLeader}");
    		//案场负责人
    		//deptSelectChange($("#fieldLeaderDept"),'fieldLeader',"${projectSetting.fieldLeader}");
    		//财务负责人
    		//deptSelectChange($("#financeLeaderDept"),'financeLeader',"${projectSetting.financeLeader}");
    		//销管负责人
    		//deptSelectChange($("#maLeaderDept"),'maLeader',"${projectSetting.maLeader}");
    		//区域负责人
    		//deptSelectChange($("#areaLeaderDept"),'areaLeader',"${projectSetting.areaLeader}");
    		queryImages();
    	}
    	
        //$("textarea").val("");
        $(".hastexteara").click(function () {
            $(this).find(".placeholder").hide();
            $(this).find("textarea").focus();
        })
        $("textarea").blur(function () {
            if ($(this).val() == "") {
                $(this).siblings(".placeholder").show();
            }
        })

        $(".maintt").click(function () {

            if ($(this).next(".editetablewrap").is(":hidden")) {
                $(".editetablewrap").hide();
                $(this).next(".editetablewrap").show();
                $(".power").removeClass("open");
                $(this).find(".power").addClass("open");
            } else {
                $(".editetablewrap").hide();
                $(".power").removeClass("open");
            }
        });
    	$("#carportTotal").blur(function(){
    		setCarportMatching();
    	});
    	$("#householdsTotal").blur(function(){
    		setCarportMatching();
    	});
        	
    });
    
    
    
    
    function showImg(obj){
		  var checkImg = $(obj).children().attr("src");
		  var array = new Array();
		  var parentId =  $(obj).parent().attr("id");
		  array.push({ url:checkImg,caption: getFileName(checkImg),options:{side:'left'}});
		  var allImg = $("#"+parentId+ " .imgblock img");
		 	for(var i=0;i<allImg.length;i++){
		 		if(allImg.eq(i).attr("src")!=checkImg){
		 			array.push({ url:allImg.eq(i).attr("src") , caption: getFileName(allImg.eq(i).attr("src")),options:{side:'left'}});
		 		}
		 	}
		 	Strip.show(array);
  }
  	
    
    function replaceFileUrl(ftpUrl){
    	if(ftpUrl==null||ftpUrl==""){
    		return ftpUrl;
    	}
    	//取得文件明
    	var fileName=ftpUrl.substring(ftpUrl.indexOf("?")+1,ftpUrl.length);
    	ftpUrl=ftpUrl.replace(new RegExp("/","gm"),"?");  
    	ftpUrl=ftpUrl.substring(0,ftpUrl.indexOf("?fileName="));
    	return "?fileUrl="+ftpUrl+"&"+fileName;
    }
    
	function getFileName(ftpUrl){
		var fileName = ftpUrl.substring(ftpUrl.indexOf("=")+1,ftpUrl.length);
		var aLink = replaceFileUrl(ftpUrl);
		var abtn = "<a href='${jypath}/common/file/downloadFile"+aLink+"'>"+fileName+"</a>";
		return abtn;
	}
	var addProjectBtnSubmit=false;
    function savaData(){
    	/* var valid = $(".input_txt");
    	for(var i=0;i<valid.length;i++){
    		var value = valid.eq(i).val();
    		if(valid.eq(i).attr("valid")=='true'){
    			
    			if(value==null||value==""||value=="-1"){
    				valid.eq(i).focus();
    				layer.tips('必填项', valid.eq(i));
    				return;
    			}
    		}else if(valid.eq(i).attr("valid")=='number'){
    			if(value!=null&&value!=""){
    				var reg = /^\+?(0|[1-9][0-9]*)$/;
    				if(!reg.test(value)){
        				valid.eq(i).focus();
    					layer.tips("请输入一个整数!",valid.eq(i));
    					return;
    				}
    			}
    		}else if(valid.eq(i).attr("valid")=='decimal'){
    			  var reg = /^\d+(.\d{1,2})?$/;
    			  if(value!=null&&value!=""){
    				  if(!reg.test(value)){
    	    			valid.eq(i).focus();
      					layer.tips("请输入一个数字,可保留两位小数!",valid.eq(i));
      					return;
      				}
    			  }
    		}
    	} */
    	var flag = JY.Validate.form("project_info_form");
		if(flag){
	     	initFormImg();
			if(addProjectBtnSubmit){
				 layer.msg("不能重复提交");
				 return;
			}
			addProjectBtnSubmit=true;
	    	$.ajax({
	    		type: 'post',
	            url: "${jypath}/estate/projectBasic/add",
	    	    data: $("#project_info_form").serialize(),
	    	    dataType:'json',
	    	    success: function(res){
	    	    	addProjectBtnSubmit=false;
	    	    	if(res.res=="1"){
	    	    		var idKey=$("#idKey").val();
	    	    		var successMsg="";
	    	    		if(idKey!=""){
	    	    			successMsg="修改成功";
	    	    		}else{
	    	    			successMsg="新增成功";
	    	    		}
	    	    	
//	     	    		layer.alert(successMsg);
	    	    		layer.confirm(successMsg, {
	    	    		   btn: ['确定'] //按钮
	    	    		}, function(index){
	    	    			backProject();
	    	    		});
	    	    		
	    	    		
	    	    	}else if(res.res=="100"){
	    	    		layer.alert("权限不足！")
	    	    	}else{
	    	    		layer.alert(res.resMsg);
	    	    	}
	    	    	
	    	    }
	    	}); 
		}
    	
    }
    
    function initFormImg(){
    	var logoUrl=getImageUrl("logo");
    	var planeUrl=getImageUrl("plane");
    	var peripheryUrl=getImageUrl("periphery");
    	var effectUrl=getImageUrl("effect");
    	var trafficUrl=getImageUrl("traffic");
    	var realUrl=getImageUrl("real");
    	var modelUrl=getImageUrl("model");
    	$("#logoUrl").val(logoUrl);
    	$("#planeUrl").val(planeUrl);
    	$("#peripheryUrl").val(peripheryUrl);
    	$("#effectUrl").val(effectUrl);
    	$("#trafficUrl").val(trafficUrl);
    	$("#realUrl").val(realUrl);
    	$("#modelUrl").val(modelUrl);
    }
    
    function regionSelectChange(obj,initId,selectId){
    	var parentId=$(obj).val();
    	console.log("parentId:"+parentId);
    	if(parentId=="-1"){
    		var option='<option value="" >请选择 </option>';
    		$("#"+initId).html(option);
    		return;
    	}
    	console.log("开始查询children");
    	$.ajax({
    		type: 'post',
            url: "${jypath}/system/area/findAreaByParentId",
    	    data: {
    	    	parentId:parentId
    	    },
    	    dataType:'json',
    	    async: false,
    	    success: function(res){
    	    	$("#"+initId).empty();
    	    	var list=res.obj;
    	    	var option='<option value="" >请选择 </option>';
        		$.each(list, function(index, row) {
        			var showOption="";
        			if(row.id==selectId){
        				showOption='selected="selected"';
        			}
        			option=option+'<option value="'+row.id+' " '+showOption+'>'+row.areaName+'</option>';
        		});
        		$("#"+initId).html(option);
    	    	
    	    }
    	});
    }
    
    function deptSelectChange(obj,initId,selectid){
    	var deptId=$(obj).val();
    	if(deptId=="-1"){
    		var option='<option value="" >请选择 </option>';
    		$("#"+initId).html(option);
    		return;
    	}
    	$.ajax({
    		type: 'post',
            url: "${jypath}/system/user/findUserByDeptId",
    	    data: {
    	    	deptId:deptId
    	    },
    	    dataType:'json',
    	    async: false,
    	    success: function(res){
    	    	$("#"+initId).empty();
    	    	var list=res.obj;
    	    	var option='<option value="" >请选择 </option>';
        		$.each(list, function(index, row) {
        			var showOption="";
        			if(row.id==selectid){
        				showOption='selected="selected"';
        			}
        			
        			option=option+'<option value="'+row.id+'" '+showOption+'>'+row.userName+'</option>';
        		});
        		$("#"+initId).html(option);
    	    	
    	    }
    	});
    }
    
    
    //切换单选按钮
    function clickSelect(currObj,name){
    	$("em[name='"+name+"Check']").each(function(index,obj){
    		$(obj).removeClass("icon_radio_checked");
    	});
    	$(currObj).addClass("icon_radio_checked");
    	var checkValue=$(currObj).attr("checkValue")
    	$("#"+name).val(checkValue);
    	console.log($("#"+name).val());
    	
    }
    function removeImg(obj){
    	$(obj).parent().remove();
    }
    //获取图片url字符串用;隔开
    function getImageUrl(name){
    	var urlStr="";
    	var divName="project_"+name+"_img_div";
    	$("#"+divName+" img").each(function(index,obj){
    		var url=$(obj).attr("src");
    		if(index==0){
    			urlStr=url;
    		}else{
    			urlStr=urlStr+";"+url;
    		}
    	});
    	console.log(urlStr);
    	return urlStr;
    }
    
    function ajaxfile(imgDivId,obj){
    	console.log("进入文件上传方法");
	    $("input[type='file']").each(function(index,obj){
	    	 $(obj).attr("name","");
	 	     $(obj).attr("id","");
	    });
    	$(obj).attr("name","file");
	    $(obj).attr("id","file");
	    var filePath=$("#file").val();
	    console.log("文件上传路径："+filePath);
	    if(!/\.(gif|jpg|jpeg|png|bmp|GIF|JPG|PNG|BMP)$/.test(filePath)){
	        alert('提示','您上传的图片格式不正确');
	        return;
	    }
	    console.log("文件上传参数验证通过，开始上传......");
	    $.ajaxFileUpload ({
			url:'${jypath}/common/file/uploadFile?type=1',
			secureuri:false,
			fileElementId:"file",
			dataType: 'json',
			success: function (data, status) {
				console.log(data);
				var url=data.url;
				var result=data.result;
				if(result!="0"){
					console.log("文件上传成功");
					layer.alert("文件上传成功");
					//创建img + imgName
					url=url+"?fileName="+data.fileName;
					var imgHtml='<a class="imgblock" onclick="showImg(this)"> <img height="108px" width="108px" src="'+url+'" /> <em class=" close" onclick="removeImg(this)"> </em> </a>';
					$("#"+imgDivId).append(imgHtml);
					queryImages();
				}else{
					console.log("文件上传失败");
					layer.alert("文件上传失败");
				}
				
			},
			error: function (data, status, e){
				layer.alert("网络错误");
	        }
		});
    }
    
    function queryImages(){
		//图片数量统计
		var array = new Array();
		array.push('#project_logo_img_div');
		array.push('#project_plane_img_div');
		array.push('#project_periphery_img_div');
		array.push('#project_effect_img_div');
		array.push('#project_traffic_img_div');
		array.push('#project_real_img_div');
		array.push('#project_model_img_div');
		for(ob in array){
			$(array[ob]).prev().html("已上传"+$(array[ob] +" img").length+"张图片");
		}
    }
    
    function projectTypeChange(){
    	var values = $("#projectTypeSelect").multiselect("getChecked").map(function(){return this.value; }).get();
    	if(null==values || values=="")return;
    	if(values.indexOf("99")!=-1){
    		$("#otherProjectType").removeClass("hide");
    	}else{
    		$("#otherProjectType").addClass("hide");
    	}
    	$("#projectType").val(values);
    }
    
    function renovationTypeChange(){
    	var values = $("#renovationType").val();
    	if(values==2){
    		$("#renovationDesc").show();
    	}else{
    		$("#renovationDesc").hide();
    	}
    }
    
    function initProjectType(){
    	var value="${project.projectType}";
    	if(value!=null && value!=""){
    		if(value.indexOf("99")!=-1){
        		$("#otherProjectType").removeClass("hide");
        	}else{
        		$("#otherProjectType").addClass("hide");
        	}
    		
    		//初始化选项
    		var ids = value.split(",");
    		$("#projectTypeSelect").val(ids);
    		$("#projectTypeSelect").multiselect("refresh");     
    	}else{
    		$("#otherProjectType").addClass("hide");
    	}
    }
    
    function setCarportMatching(){
    	
    	//车位数/总户数=车位占比
    	var carportTotal=$("#carportTotal").val();
    	var householdsTotal=$("#householdsTotal").val();
    	if(null==carportTotal || carportTotal=="" ){
    		return;
    	}
    	if(null==householdsTotal || householdsTotal=="" ){
    		return;
    	}
    	var result=(parseFloat(carportTotal)/parseFloat(householdsTotal)).toFixed(2);
    	$("#carportMatching").val(result);
    }
    
    
    
   
</script>
  <script type="text/javascript" src="${jypath}/static/js/strip.min.js"></script>
</body>
</html>
